const router = require("koa-router")()
const ArticleModel = require("../../models/article")
router.get("/api/articleDetail",async ctx=>{
    var {id} = ctx.query
    var data = await ArticleModel.find({_id:id})
    ctx.body={
        code:200,
        data,
        msg:"文章详情"
    }
})
module.exports = router